package com.wxx.main;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class M {

	public static void main(String[] args) {
		String s = "123123213x";
		System.out.println("upupupupup>>>>>>>"+s.toUpperCase());
		String str =" {\"respCode\": \"0000\",\"respCodes\": \"0000\"}";
		String arrStr =" [{\"respCode1\": \"0000\",\"respCode3\": \"0000\"},{\"respCode1\": \"0000\",\"respCode3\": \"0000\"},{\"respCode1\": \"0000\",\"respCode3\": \"0000\"}]";
		JSONObject json = JSONObject.fromObject(str);
		JSONArray arr = JSONArray.fromObject(arrStr);
		json.put("arr",arr);
		json.put("respCode", "77777777777");
		json.put("respCode", "99999999999");
		//System.out.println(">>>>json>>>>"+json.toString());
		System.out.println(">>>>arr1>>>>"+arr.toString());
		int i =0;
		for(Object ao : arr)
		{
			JSONObject aO = JSONObject.fromObject(ao);
			//String str3 =aO.getString("respCode3");
			aO.put("respCode3", "4444444444444444");
			//arr.remove(0);
			arr.get(i);
			System.out.println(">>>>arr.get(i)>>>>"+arr.get(i).toString());
			i=i+1;
		}
		System.out.println(">>>>arr2>>>>"+arr.toString());
	}

}
